home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / vulgus.c < prev    next >
C/C++ Source or Header  |  2000-05-04  |  16KB  |  442 lines

  1. /***************************************************************************
  2.  
  3. Vulgus memory map (preliminary)
  4.  
  5. driver by Mirko Buffoni
  6.  
  7. MAIN CPU
  8. 0000-9fff ROM
  9. cc00-cc7f Sprites
  10. d000-d3ff Video RAM
  11. d400-d7ff Color RAM
  12. d800-dbff background video RAM
  13. dc00-dfff background color RAM
  14. e000-efff RAM
  15.  
  16. read:
  17. c000      IN0
  18. c001      IN1
  19. c002      IN2
  20. c003      DSW1
  21. c004      DSW2
  22.  
  23. write:
  24. c802      background x scroll low 8 bits
  25. c803      background y scroll low 8 bits
  26. c805      background palette bank selector
  27. c902      background x scroll high bit
  28. c903      background y scroll high bit
  29.  
  30. SOUND CPU
  31. 0000-3fff ROM
  32. 4000-47ff RAM
  33.  
  34. write:
  35. 8000      YM2203 #1 control
  36. 8001      YM2203 #1 write
  37. c000      YM2203 #2 control
  38. c001      YM2203 #2 write
  39.  
  40. ***************************************************************************/
  41.  
  42. #include "driver.h"
  43. #include "vidhrdw/generic.h"
  44.  
  45.  
  46.  
  47. int c1942_interrupt(void);
  48.  
  49. extern unsigned char *vulgus_bgvideoram,*vulgus_bgcolorram;
  50. extern size_t vulgus_bgvideoram_size;
  51. extern unsigned char *vulgus_scrolllow,*vulgus_scrollhigh;
  52. extern unsigned char *vulgus_palette_bank;
  53. WRITE_HANDLER( vulgus_bgvideoram_w );
  54. WRITE_HANDLER( vulgus_bgcolorram_w );
  55. WRITE_HANDLER( vulgus_palette_bank_w );
  56. int vulgus_vh_start(void);
  57. void vulgus_vh_stop(void);
  58. void vulgus_vh_convert_color_prom(unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom);
  59. void vulgus_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  60.  
  61.  
  62.  
  63. static WRITE_HANDLER( vulgus_control_w )
  64. {
  65.     /* bit 0-1 coin counters */
  66.     coin_counter_w(0, data & 1);
  67.     coin_counter_w(1, data & 2);
  68.  
  69.     /* bit 7   flip screen
  70.  
  71.        in vulgus this is active LO, in vulgusj this is active HI !!! */
  72. }
  73.  
  74.  
  75. static struct MemoryReadAddress readmem[] =
  76. {
  77.     { 0x0000, 0x9fff, MRA_ROM },
  78.     { 0xc000, 0xc000, input_port_0_r },
  79.     { 0xc001, 0xc001, input_port_1_r },
  80.     { 0xc002, 0xc002, input_port_2_r },
  81.     { 0xc003, 0xc003, input_port_3_r },
  82.     { 0xc004, 0xc004, input_port_4_r },
  83.     { 0xd000, 0xefff, MRA_RAM },
  84.     { -1 }    /* end of table */
  85. };
  86.  
  87. static struct MemoryWriteAddress writemem[] =
  88. {
  89.     { 0x0000, 0x9fff, MWA_ROM },
  90.     { 0xc800, 0xc800, soundlatch_w },
  91.     { 0xc802, 0xc803, MWA_RAM, &vulgus_scrolllow },
  92.     { 0xc804, 0xc804, vulgus_control_w },
  93.     { 0xc805, 0xc805, vulgus_palette_bank_w, &vulgus_palette_bank },
  94.     { 0xc902, 0xc903, MWA_RAM, &vulgus_scrollhigh },
  95.     { 0xcc00, 0xcc7f, MWA_RAM, &spriteram, &spriteram_size },
  96.     { 0xd000, 0xd3ff, videoram_w, &videoram, &videoram_size },
  97.     { 0xd400, 0xd7ff, colorram_w, &colorram },
  98.     { 0xd800, 0xdbff, vulgus_bgvideoram_w, &vulgus_bgvideoram, &vulgus_bgvideoram_size },
  99.     { 0xdc00, 0xdfff, vulgus_bgcolorram_w, &vulgus_bgcolorram },
  100.     { 0xe000, 0xefff, MWA_RAM },
  101.     { -1 }    /* end of table */
  102. };
  103.  
  104.  
  105.  
  106. static struct MemoryReadAddress sound_readmem[] =
  107. {
  108.     { 0x0000, 0x1fff, MRA_ROM },
  109.     { 0x4000, 0x47ff, MRA_RAM },
  110.     { 0x6000, 0x6000, soundlatch_r },
  111.     { -1 }    /* end of table */
  112. };
  113.  
  114. static struct MemoryWriteAddress sound_writemem[] =
  115. {
  116.     { 0x0000, 0x1fff, MWA_ROM },
  117.     { 0x4000, 0x47ff, MWA_RAM },
  118.     { 0x8000, 0x8000, AY8910_control_port_0_w },
  119.     { 0x8001, 0x8001, AY8910_write_port_0_w },
  120.     { 0xc000, 0xc000, AY8910_control_port_1_w },
  121.     { 0xc001, 0xc001, AY8910_write_port_1_w },
  122.     { -1 }    /* end of table */
  123. };
  124.  
  125.  
  126.  
  127. INPUT_PORTS_START( vulgus )
  128.     PORT_START      /* IN0 */
  129.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
  130.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
  131.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* probably unused */
  132.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* probably unused */
  133.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* probably unused */
  134.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* probably unused */
  135.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
  136.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
  137.  
  138.     PORT_START      /* IN1 */
  139.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
  140.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
  141.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
  142.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
  143.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
  144.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
  145.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  146.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  147.  
  148.     PORT_START      /* IN2 */
  149.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
  150.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
  151.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
  152.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
  153.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
  154.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
  155.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  156.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
  157.  
  158.     PORT_START      /* DSW0 */
  159.     PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
  160.     PORT_DIPSETTING(    0x01, "1" )
  161.     PORT_DIPSETTING(    0x02, "2" )
  162.     PORT_DIPSETTING(    0x03, "3" )
  163.     PORT_DIPSETTING(    0x00, "5" )
  164.     /* these are the settings for the second coin input, but it seems that the */
  165.     /* game only supports one */
  166.     PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) )
  167.     PORT_DIPSETTING(    0x10, DEF_STR( 5C_1C ) )
  168.     PORT_DIPSETTING(    0x08, DEF_STR( 4C_1C ) )
  169.     PORT_DIPSETTING(    0x18, DEF_STR( 3C_1C ) )
  170.     PORT_DIPSETTING(    0x04, DEF_STR( 2C_1C ) )
  171.     PORT_DIPSETTING(    0x1c, DEF_STR( 1C_1C ) )
  172.     PORT_DIPSETTING(    0x0c, DEF_STR( 1C_2C ) )
  173.     PORT_DIPSETTING(    0x14, DEF_STR( 1C_3C ) )
  174. /*    PORT_DIPSETTING(    0x00, "Invalid" ) disables both coins */
  175.     PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) )
  176.     PORT_DIPSETTING(    0x80, DEF_STR( 5C_1C ) )
  177.     PORT_DIPSETTING(    0x40, DEF_STR( 4C_1C ) )
  178.     PORT_DIPSETTING(    0xc0, DEF_STR( 3C_1C ) )
  179.     PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )
  180.     PORT_DIPSETTING(    0xe0, DEF_STR( 1C_1C ) )
  181.     PORT_DIPSETTING(    0x60, DEF_STR( 1C_2C ) )
  182.     PORT_DIPSETTING(    0xa0, DEF_STR( 1C_3C ) )
  183.     PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
  184.  
  185.     PORT_START      /* DSW1 */
  186. /* not sure about difficulty
  187.    Code perform a read and (& 0x03). NDMix*/
  188.     PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
  189.     PORT_DIPSETTING(    0x02, "Easy?" )
  190.     PORT_DIPSETTING(    0x03, "Normal?" )
  191.     PORT_DIPSETTING(    0x01, "Hard?" )
  192.     PORT_DIPSETTING(    0x00, "Hardest?" )
  193.     PORT_DIPNAME( 0x04, 0x04, "Demo Music" )
  194.     PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
  195.     PORT_DIPSETTING(    0x04, DEF_STR( On ) )
  196.     PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )
  197.     PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
  198.     PORT_DIPSETTING(    0x08, DEF_STR( On ) )
  199.     PORT_DIPNAME( 0x70, 0x70, DEF_STR( Bonus_Life ) )
  200.     PORT_DIPSETTING(    0x30, "10000 50000" )
  201.     PORT_DIPSETTING(    0x50, "10000 60000" )
  202.     PORT_DIPSETTING(    0x10, "10000 70000" )
  203.     PORT_DIPSETTING(    0x70, "20000 60000" )
  204.     PORT_DIPSETTING(    0x60, "20000 70000" )
  205.     PORT_DIPSETTING(    0x20, "20000 80000" )
  206.     PORT_DIPSETTING(    0x40, "30000 70000" )
  207.     PORT_DIPSETTING(    0x00, "None" )
  208.     PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
  209.     PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
  210.     PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
  211. INPUT_PORTS_END
  212.  
  213.  
  214.  
  215. static struct GfxLayout charlayout =
  216. {
  217.     8,8,    /* 8*8 characters */
  218.     512,    /* 512 characters */
  219.     2,        /* 2 bits per pixel */
  220.     { 4, 0 },
  221.     { 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3 },
  222.     { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 },
  223.     16*8    /* every char takes 16 consecutive bytes */
  224. };
  225. static struct GfxLayout tilelayout =
  226. {
  227.     16,16,    /* 16*16 tiles */
  228.     512,    /* 512 tiles */
  229.     3,    /* 3 bits per pixel */
  230.     { 0, 512*32*8, 2*512*32*8 },    /* the bitplanes are separated */
  231.     { 0, 1, 2, 3, 4, 5, 6, 7,
  232.         16*8+0, 16*8+1, 16*8+2, 16*8+3, 16*8+4, 16*8+5, 16*8+6, 16*8+7 },
  233.     { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
  234.             8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
  235.     32*8    /* every tile takes 32 consecutive bytes */
  236. };
  237. static struct GfxLayout spritelayout =
  238. {
  239.     16,16,    /* 16*16 sprites */
  240.     256,    /* 256 sprites */
  241.     4,    /* 4 bits per pixel */
  242.     { 256*64*8+4, 256*64*8, 4, 0 },
  243.     { 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3,
  244.             32*8+0, 32*8+1, 32*8+2, 32*8+3, 33*8+0, 33*8+1, 33*8+2, 33*8+3 },
  245.     { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
  246.             8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16 },
  247.     64*8    /* every sprite takes 64 consecutive bytes */
  248. };
  249.  
  250.  
  251.  
  252. static struct GfxDecodeInfo gfxdecodeinfo[] =
  253. {
  254.     { REGION_GFX1, 0, &charlayout,           0, 64 },
  255.     { REGION_GFX2, 0, &tilelayout,  64*4+16*16, 32*4 },
  256.     { REGION_GFX3, 0, &spritelayout,      64*4, 16 },
  257.     { -1 } /* end of array */
  258. };
  259.  
  260.  
  261.  
  262. static struct AY8910interface ay8910_interface =
  263. {
  264.     2,    /* 2 chips */
  265.     1500000,    /* 1.5 MHz ? */
  266.     { 25, 25 },
  267.     { 0 },
  268.     { 0 },
  269.     { 0 },
  270.     { 0 }
  271. };
  272.  
  273.  
  274.  
  275. static struct MachineDriver machine_driver_vulgus =
  276. {
  277.     /* basic machine hardware */
  278.     {
  279.         {
  280.             CPU_Z80,
  281.             4000000,    /* 4 Mhz (?) */
  282.             readmem,writemem,0,0,
  283.             c1942_interrupt,2
  284.         },
  285.         {
  286.             CPU_Z80 | CPU_AUDIO_CPU,
  287.             3000000,    /* 3 Mhz ??? */
  288.             sound_readmem,sound_writemem,0,0,
  289.             interrupt,8
  290.         }
  291.     },
  292.     60, DEFAULT_60HZ_VBLANK_DURATION,    /* frames per second, vblank duration */
  293.     1,    /* 1 CPU slice per frame - interleaving is forced when a sound command is written */
  294.     0,
  295.  
  296.     /* video hardware */
  297.     32*8, 32*8, { 0*8, 32*8-1, 2*8, 30*8-1 },
  298.     gfxdecodeinfo,
  299.     256,64*4+16*16+4*32*8,
  300.     vulgus_vh_convert_color_prom,
  301.  
  302.     VIDEO_TYPE_RASTER,
  303.     0,
  304.     vulgus_vh_start,
  305.     vulgus_vh_stop,
  306.     vulgus_vh_screenrefresh,
  307.  
  308.     /* sound hardware */
  309.     0,0,0,0,
  310.     {
  311.         {
  312.             SOUND_AY8910,
  313.             &ay8910_interface
  314.         }
  315.     }
  316. };
  317.  
  318.  
  319.  
  320. /***************************************************************************
  321.  
  322.   Game driver(s)
  323.  
  324. ***************************************************************************/
  325.  
  326. ROM_START( vulgus )
  327.     ROM_REGION( 0x1c000, REGION_CPU1 )    /* 64k for code */
  328.     ROM_LOAD( "v2",           0x0000, 0x2000, 0x3e18ff62 )
  329.     ROM_LOAD( "v3",           0x2000, 0x2000, 0xb4650d82 )
  330.     ROM_LOAD( "v4",           0x4000, 0x2000, 0x5b26355c )
  331.     ROM_LOAD( "v5",           0x6000, 0x2000, 0x4ca7f10e )
  332.     ROM_LOAD( "1-8n.bin",     0x8000, 0x2000, 0x6ca5ca41 )
  333.  
  334.     ROM_REGION( 0x10000, REGION_CPU2 )    /* 64k for the audio CPU */
  335.     ROM_LOAD( "1-11c.bin",    0x0000, 0x2000, 0x3bd2acf4 )
  336.  
  337.     ROM_REGION( 0x02000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  338.     ROM_LOAD( "1-3d.bin",     0x00000, 0x2000, 0x8bc5d7a5 )    /* characters */
  339.  
  340.     ROM_REGION( 0x0c000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  341.     ROM_LOAD( "2-2a.bin",     0x00000, 0x2000, 0xe10aaca1 )    /* tiles */
  342.     ROM_LOAD( "2-3a.bin",     0x02000, 0x2000, 0x8da520da )
  343.     ROM_LOAD( "2-4a.bin",     0x04000, 0x2000, 0x206a13f1 )
  344.     ROM_LOAD( "2-5a.bin",     0x06000, 0x2000, 0xb6d81984 )
  345.     ROM_LOAD( "2-6a.bin",     0x08000, 0x2000, 0x5a26b38f )
  346.     ROM_LOAD( "2-7a.bin",     0x0a000, 0x2000, 0x1e1ca773 )
  347.  
  348.     ROM_REGION( 0x08000, REGION_GFX3 | REGIONFLAG_DISPOSE )
  349.     ROM_LOAD( "2-2n.bin",     0x00000, 0x2000, 0x6db1b10d )    /* sprites */
  350.     ROM_LOAD( "2-3n.bin",     0x02000, 0x2000, 0x5d8c34ec )
  351.     ROM_LOAD( "2-4n.bin",     0x04000, 0x2000, 0x0071a2e3 )
  352.     ROM_LOAD( "2-5n.bin",     0x06000, 0x2000, 0x4023a1ec )
  353.  
  354.     ROM_REGION( 0x0600, REGION_PROMS )
  355.     ROM_LOAD( "e8.bin",       0x0000, 0x0100, 0x06a83606 )    /* red component */
  356.     ROM_LOAD( "e9.bin",       0x0100, 0x0100, 0xbeacf13c )    /* green component */
  357.     ROM_LOAD( "e10.bin",      0x0200, 0x0100, 0xde1fb621 )    /* blue component */
  358.     ROM_LOAD( "d1.bin",       0x0300, 0x0100, 0x7179080d )    /* char lookup table */
  359.     ROM_LOAD( "j2.bin",       0x0400, 0x0100, 0xd0842029 )    /* sprite lookup table */
  360.     ROM_LOAD( "c9.bin",       0x0500, 0x0100, 0x7a1f0bd6 )    /* tile lookup table */
  361. ROM_END
  362.  
  363. ROM_START( vulgus2 )
  364.     ROM_REGION( 0x1c000, REGION_CPU1 )    /* 64k for code */
  365.     ROM_LOAD( "vulgus.002",   0x0000, 0x2000, 0xe49d6c5d )
  366.     ROM_LOAD( "vulgus.003",   0x2000, 0x2000, 0x51acef76 )
  367.     ROM_LOAD( "vulgus.004",   0x4000, 0x2000, 0x489e7f60 )
  368.     ROM_LOAD( "vulgus.005",   0x6000, 0x2000, 0xde3a24a8 )
  369.     ROM_LOAD( "1-8n.bin",     0x8000, 0x2000, 0x6ca5ca41 )
  370.  
  371.     ROM_REGION( 0x10000, REGION_CPU2 )    /* 64k for the audio CPU */
  372.     ROM_LOAD( "1-11c.bin",    0x0000, 0x2000, 0x3bd2acf4 )
  373.  
  374.     ROM_REGION( 0x02000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  375.     ROM_LOAD( "1-3d.bin",     0x00000, 0x2000, 0x8bc5d7a5 )    /* characters */
  376.  
  377.     ROM_REGION( 0x0c000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  378.     ROM_LOAD( "2-2a.bin",     0x00000, 0x2000, 0xe10aaca1 )    /* tiles */
  379.     ROM_LOAD( "2-3a.bin",     0x02000, 0x2000, 0x8da520da )
  380.     ROM_LOAD( "2-4a.bin",     0x04000, 0x2000, 0x206a13f1 )
  381.     ROM_LOAD( "2-5a.bin",     0x06000, 0x2000, 0xb6d81984 )
  382.     ROM_LOAD( "2-6a.bin",     0x08000, 0x2000, 0x5a26b38f )
  383.     ROM_LOAD( "2-7a.bin",     0x0a000, 0x2000, 0x1e1ca773 )
  384.  
  385.     ROM_REGION( 0x08000, REGION_GFX3 | REGIONFLAG_DISPOSE )
  386.     ROM_LOAD( "2-2n.bin",     0x00000, 0x2000, 0x6db1b10d )    /* sprites */
  387.     ROM_LOAD( "2-3n.bin",     0x02000, 0x2000, 0x5d8c34ec )
  388.     ROM_LOAD( "2-4n.bin",     0x04000, 0x2000, 0x0071a2e3 )
  389.     ROM_LOAD( "2-5n.bin",     0x06000, 0x2000, 0x4023a1ec )
  390.  
  391.     ROM_REGION( 0x0600, REGION_PROMS )
  392.     ROM_LOAD( "e8.bin",       0x0000, 0x0100, 0x06a83606 )    /* red component */
  393.     ROM_LOAD( "e9.bin",       0x0100, 0x0100, 0xbeacf13c )    /* green component */
  394.     ROM_LOAD( "e10.bin",      0x0200, 0x0100, 0xde1fb621 )    /* blue component */
  395.     ROM_LOAD( "d1.bin",       0x0300, 0x0100, 0x7179080d )    /* char lookup table */
  396.     ROM_LOAD( "j2.bin",       0x0400, 0x0100, 0xd0842029 )    /* sprite lookup table */
  397.     ROM_LOAD( "c9.bin",       0x0500, 0x0100, 0x7a1f0bd6 )    /* tile lookup table */
  398. ROM_END
  399.  
  400. ROM_START( vulgusj )
  401.     ROM_REGION( 0x1c000, REGION_CPU1 )    /* 64k for code */
  402.     ROM_LOAD( "1-4n.bin",     0x0000, 0x2000, 0xfe5a5ca5 )
  403.     ROM_LOAD( "1-5n.bin",     0x2000, 0x2000, 0x847e437f )
  404.     ROM_LOAD( "1-6n.bin",     0x4000, 0x2000, 0x4666c436 )
  405.     ROM_LOAD( "1-7n.bin",     0x6000, 0x2000, 0xff2097f9 )
  406.     ROM_LOAD( "1-8n.bin",     0x8000, 0x2000, 0x6ca5ca41 )
  407.  
  408.     ROM_REGION( 0x10000, REGION_CPU2 )    /* 64k for the audio CPU */
  409.     ROM_LOAD( "1-11c.bin",    0x0000, 0x2000, 0x3bd2acf4 )
  410.  
  411.     ROM_REGION( 0x02000, REGION_GFX1 | REGIONFLAG_DISPOSE )
  412.     ROM_LOAD( "1-3d.bin",     0x00000, 0x2000, 0x8bc5d7a5 )    /* characters */
  413.  
  414.     ROM_REGION( 0x0c000, REGION_GFX2 | REGIONFLAG_DISPOSE )
  415.     ROM_LOAD( "2-2a.bin",     0x00000, 0x2000, 0xe10aaca1 )    /* tiles */
  416.     ROM_LOAD( "2-3a.bin",     0x02000, 0x2000, 0x8da520da )
  417.     ROM_LOAD( "2-4a.bin",     0x04000, 0x2000, 0x206a13f1 )
  418.     ROM_LOAD( "2-5a.bin",     0x06000, 0x2000, 0xb6d81984 )
  419.     ROM_LOAD( "2-6a.bin",     0x08000, 0x2000, 0x5a26b38f )
  420.     ROM_LOAD( "2-7a.bin",     0x0a000, 0x2000, 0x1e1ca773 )
  421.  
  422.     ROM_REGION( 0x08000, REGION_GFX3 | REGIONFLAG_DISPOSE )
  423.     ROM_LOAD( "2-2n.bin",     0x00000, 0x2000, 0x6db1b10d )    /* sprites */
  424.     ROM_LOAD( "2-3n.bin",     0x02000, 0x2000, 0x5d8c34ec )
  425.     ROM_LOAD( "2-4n.bin",     0x04000, 0x2000, 0x0071a2e3 )
  426.     ROM_LOAD( "2-5n.bin",     0x06000, 0x2000, 0x4023a1ec )
  427.  
  428.     ROM_REGION( 0x0600, REGION_PROMS )
  429.     ROM_LOAD( "e8.bin",       0x0000, 0x0100, 0x06a83606 )    /* red component */
  430.     ROM_LOAD( "e9.bin",       0x0100, 0x0100, 0xbeacf13c )    /* green component */
  431.     ROM_LOAD( "e10.bin",      0x0200, 0x0100, 0xde1fb621 )    /* blue component */
  432.     ROM_LOAD( "d1.bin",       0x0300, 0x0100, 0x7179080d )    /* char lookup table */
  433.     ROM_LOAD( "j2.bin",       0x0400, 0x0100, 0xd0842029 )    /* sprite lookup table */
  434.     ROM_LOAD( "c9.bin",       0x0500, 0x0100, 0x7a1f0bd6 )    /* tile lookup table */
  435. ROM_END
  436.  
  437.  
  438.  
  439. GAMEX( 1984, vulgus,  0,      vulgus, vulgus, 0, ROT270, "Capcom", "Vulgus (set 1)", GAME_NO_COCKTAIL )
  440. GAMEX( 1984, vulgus2, vulgus, vulgus, vulgus, 0, ROT270, "Capcom", "Vulgus (set 2)", GAME_NO_COCKTAIL )
  441. GAMEX( 1984, vulgusj, vulgus, vulgus, vulgus, 0, ROT270, "Capcom", "Vulgus (Japan?)", GAME_NO_COCKTAIL )
  442.